Use string-empty-p for readability.
authorJeremy Bryant <jb@jeremybryant.net>
Sat, 9 Mar 2024 21:54:23 +0000 (21:54 +0000)
committerJustin Burkett <justin@burkett.cc>
Tue, 12 Mar 2024 20:32:13 +0000 (16:32 -0400)
* which-key.el (which-key--maybe-get-prefix-title):
Use string-empty-p for readability.

which-key.el

index a4aec2476d37c5a7ab894c53cd8d7be260c6448f..985c419f73b7f3107adf345d45a9b2aad4dfabb9 100644 (file)
@@ -1660,7 +1660,7 @@ no title exists."
            (alternate (when (and binding (symbolp binding))
                         (symbol-name binding))))
       (cond (title-res title-res)
-            ((not (string-equal repl-res "")) repl-res)
+            ((not (string-empty-p repl-res)) repl-res)
             ((and (eq which-key-show-prefix 'echo) alternate)
              alternate)
             ((and (member which-key-show-prefix '(bottom top mode-line))